package com.itheima.controller;

import com.itheima.pojo.Enterprise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Description:
 *
 * @author codermsk
 * @date 2023/11/9 20:02
 */
//@RestController
//@RequestMapping("/books")
public class BookController {
    @Value("${lesson}")
    private String lessonName;

    @Value("${server.port}")
    private int port;

    @Value("${enterprise.subject[1]}")
    private String subject_01;

    @Autowired
    private Enterprise enterprise;
    @GetMapping
    public String hello(){
        System.out.println("lessonName=>" + lessonName);
        System.out.println("port=>" + port);
        System.out.println("subject_01=>" + subject_01);
        System.out.println("enterprise=>" + enterprise);
        return "hello springboot";
    }
}
